package pkg

import (
	"crypto/md5"
	"fmt"
)

type Md5 struct {
}

func NewMd5() *Md5 {
	return &Md5{}
}
func (m *Md5) Md5Str(str string) string {
	data := []byte(str)
	has := md5.Sum(data)
	return fmt.Sprintf("%x", has)
}
